package cn.kgc.springday04.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/6/14
 * @Description:
 */
@Component
@Data
public class User {

    //@Value("tom")
    @Value("${name}")
    private String username;
    //@Value("25")
    @Value("${age}")
    private Integer age;

}
